/*
 * ActionUniversalHO.java
 *
 * Created on 6 de Dezembro de 2007, 20:28
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.ontoscheduler.concepts;

import java.util.Collection;

import com.hp.hpl.jena.ontology.OntModel;
import com.hp.hpl.jena.ontology.Individual;

/**
 *
 * @author joaoolavo
 */
public class ActionUniversalHO extends Concepts {
    
    /** Creates a new instance of ActionUniversalHO */
    public ActionUniversalHO(OntModel m) {
        setConcept(m, "ActionUniversalHO");
    }
    
    public Individual addIndividual(String name, Collection instantiates){
        Individual ind = addIndividual(name);
        setInstantiates(ind, instantiates);
        return ind;
    }
    
    public int setInstantiates(Individual ho, Collection fo){
        return addPropertyValues("inv-instanceOf", ho, fo, OBJECT_PROPERTY);
    }
    
}
